package com.dingwen.treasure.kettle.exception;

import com.dingwen.treasure.kettle.base.exception.AbstractBaseRuntimeException;

/**
 * 　ReSubmitException: 频繁提交请求异常
 * 　@author dingwen
 * 　@date 2022/6/11
 *
 */
public class ReSubmitException extends AbstractBaseRuntimeException {

    private static final long serialVersionUID = -1;

    /**
     * Constructs a new runtime exception with the specified detail message.
     * The cause is not initialized, and may subsequently be initialized by a
     * call to {@link #initCause}.
     *
     * @param message the detail message. The detail message is saved for
     *                later retrieval by the {@link #getMessage()} method.
     */
    public ReSubmitException(String message) {
        super(message);
    }

    /**
     * 有参构造器子类调用
     *
     * @param code    异常码
     * @param message 异常消息
     */
    public ReSubmitException(Integer code, String message) {
        super(code, message);
    }
}
